//
//  ZXXGroomCell.m
//  寻宝之旅ZXX
//
//  Created by 朱骁雄 on 16/4/7.
//  Copyright © 2016年 朱骁雄. All rights reserved.
//

#import "ZXXGroomCell.h"

@interface ZXXGroomCell ()
@property (weak, nonatomic) IBOutlet UIImageView *userFace;
@property (weak, nonatomic) IBOutlet UIImageView *iconView01;
@property (weak, nonatomic) IBOutlet UIImageView *iconView02;
@property (weak, nonatomic) IBOutlet UIImageView *iconView03;

@end

@implementation ZXXGroomCell

+(instancetype)groomWithCell:(UITableView*)tableView{
    
    static NSString * ID = @"groom";
    
    ZXXGroomCell * cell = [tableView dequeueReusableCellWithIdentifier:ID];
    
    if (cell ==nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:@"ZXXGroomCell" owner:nil options:nil] lastObject];
    }
    
    
    return cell;     
    
}



- (void)awakeFromNib {
    // 设置圆角半径
    self.imageView.layer.cornerRadius = self.userFace.frame.size.height * 0.5;
    // 超出边框的内容裁剪掉
    self.imageView.layer.masksToBounds = YES;
    
//    self.userFace.image = [UIImage imageNamed:@"头像2"];
//    self.iconView01.image = [UIImage imageNamed:@"尿壶"];
//    self.iconView02.image = [UIImage imageNamed:@"蛋蛋"];
//    self.iconView03.image = [UIImage imageNamed:@"佛祖头"];
    
}

- (void)setFrame:(CGRect)frame{
    
    frame.size.height -= 10;
    
    [super setFrame:frame];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
